package bootstrap

import (
	"fmt"
	"time"
	"wskyygyso/api/pkg/crontab"
)

func SetUpCron() {
	crontab.Add(
		"*/30 * * * * ?",
		func() {
			fmt.Println("hello~ now time:" + time.Now().Format("2006-01-02 15:04:05"))
		},
	)

	crontab.Add(
		"* 1 * * * ?",
		func() {
			fmt.Println("hello~ now date:" + time.Now().Format("2006-01-02 15:04:05"))
		},
	)
}
